package com.practice2.exercise;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext user
                = new ClassPathXmlApplicationContext("user.xml");
        User user1 = (User) user.getBean("user1");
        User user2 =(User) user.getBean("user2");

        user1.show();
        user2.show();
    }
}
